#!/bin/sh

ss=`cat crontab.json`

ss=${ss%%]}
ss=${ss##\[}

while true; do
  hh=${ss%%\}*}
  ss=${ss##"$hh"\},}

  echo hh="$hh"
  echo ss="$ss"
 
  cron=${hh%%,*}
  cron=${cron##*:\"}
  cron=${cron%%\"}
  action=${hh##*,}
  action=${action##*:\"}
  action=${action%%\"}
  
  echo cron="$cron"
  echo acton="$action"
  
  #echo ${hh:7:14}
  
  if [ "$hh"\} == "$ss" ]; then exit; fi
  sleep 3

done
